<@master template="master/master-loan"  title="贷前数据统计（按放款银行）">
<div class="detaiTab  detaiTab1">
<#assign dataStart=vo.loanDateStart />
<#assign dataEnd=vo.loanDateEnd />
<form  action="/report/reportStatByBankreFund" id="afterloanform" class="clearfix action-ajax-form-valid" data-action-html="#action_load_body">
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
	     <tr>
	    	<td class="bg" align="right">查询日期:
	       		<font color="red">*</font>
	       	</td>
	       	<td >
	    		<@date id="dataStart" name="loanDateStart" value="${vo.loanDateStart}" class="action-valid-field" data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="日期不能为空！" />
	    		 
	    	-
	    		<@date id="dataEnd" name="loanDateEnd" value="${vo.loanDateEnd}" class="action-valid-field" data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="日期不能为空！" /> 
	            <span class="action-field-error" for="stupdate" style="color:red;"></span>
	    	</td>
	    </tr>
	    <tr>
            <td class="bg"></td>
            <td >
            	<@permission permissionName="queryBankreFund">
	                <input type="submit" value="查询" class="btn_auto_30 btn_blue" />
            	</@permission>
            	<@permission permissionName="downloadBankreFund">
	            	<#if dataStart==null || dataEnd==null >
	            		<span><a onclick="return false" href="${reporto2ourl}" target="_blank" class="btn_auto_30 btn_gray" >导出</a><span class=" fs14" style="color: red;" >【请先查询后再导出报表】</span><font class="red ml10"> ${errorMessage}</font></span>
	            	<#else>
						<span><a href="/report/downloadBankreFund?loanDateStart=${vo.loanDateStart}&loanDateEnd=${vo.loanDateEnd}" target="_blank" class="btn_auto_30 btn_blue" >导出</a><span class=" fs14" style="color: red;" >【请先查询后再导出报表】</span><font class="red ml10"> ${errorMessage}</font></span>
					</#if>
				</@permission>
				</br>
            </td>
        </tr>
        <tr>
        </tr>
	 </table>
	</form>
</div>
<#if dataStart==null || dataEnd==null >
	<div id="o2o_result"  class="action-ajax-load mt20" data-url="${o2ourl}" style="display:none;"></div>
<#else>
	<div id="o2o_result"  class="action-ajax-load mt20" data-url="${o2ourl}"></div>
</#if>
</@master>



<!--  style="display:none;"-->